package com.example.example;

import com.qingyan.flink.core.properties.FlinkProperties;
import com.qingyan.flink.core.trans.Operation;
import com.qingyan.flink.core.trans.Operations;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.List;

@SpringBootApplication
@EnableConfigurationProperties(FlinkProperties.class)
public class ExampleApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ExampleApplication.class, args);
        FlinkProperties bean = run.getBean(FlinkProperties.class);
        List<Operation> operations = Operations.getOperations(bean);
    }

}
